package com.test.multithread.future;

import java.util.function.Consumer;

class ConDemo {
    private static void conStr(Consumer<String> fun) {
        fun.accept("接收数据");
    }

    public static void main(String[] args) {
        conStr(s -> System.out.println(s.substring(3)));
    }
}
